<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/4/9 0009
 * Time: 10:38
 */

namespace app\home\service;


class BaseService
{
    public static $appCode;
    public static $appKey;
    public static $sendUrl="http://111.230.168.17/Api/index.php/";
    public function __construct()
    {
        self::$appCode=config('inside.appCode');
        self::$appKey =config('inside.appKey');
    }
    /**错误日志初始化
     * @param string $name
     * @return ErrorService
     */
    public static function ErrorLog($name='MaReport') {
        return new ErrorService('report','/'.$name.'_'.date("Y-m-d",time()).'.ini');
    }
}